package com.hll.spring.aop.aopanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(1) // 数字类型值越小优先级越高
public class PersonProxy {
  // 后置通知（返回通知）
  @Before(value = "execution(* com.hll.spring.aop.aopanno.User.add(..))")
  public void afterReturning() {
    System.out.println("PersonProxy Before.........");
  }
}
